/**
 * Created by Ryan on 2015/12/5.
 */
$(function(){
    $("#btn-login,.login-title").click(function(event){
        $(".div-login,.zhezhao").css("display","block");
        $(".div-reg").css("display","none");
        $(".div-reg input").val("");
        clearErrorMsg();
    });
    $("#btn-reg,.reg-title").click(function(event){
        $(".div-reg,.zhezhao").css("display","block");
        $(".div-login").css("display","none");
        $(".div-login input").val("");
        clearErrorMsg();
    });
    $(".btn-close").click(function(event){
        $(".div-login,.div-reg, .errormsg, .zhezhao").css("display","none");
        $(".div-login input,.div-reg input").val("");
    });
})

function clearErrorMsg(){
    $(".errormsg").css("display","none");
}
